import QtQuick 2.0


Item {
    id:root
    implicitHeight: firstChild.height
    implicitWidth: firstChild.width

    property string textName: ''

    Rectangle{
        id:firstChild
        height: nextRect.height
        width: nextRect.width
        color: 'transparent'

        Image {
            id: nextRect
            source: "qrc:/imgs/Union.png"
            Text {
                id: name
                font.pixelSize: 22
                font.bold: true
                color: '#FFF'
                text: root.textName
                anchors.centerIn: parent
            }
        }
    }
}
